var mongoose = require('mongoose');
var url = 'mongodb://localhost/movieServer';

// 创建mongodb数据连接
mongoose.connect(url, { useNewUrlParser: true });
// 暴露数据库连接
module.exports = mongoose;